package com.sangu.dianxiu.config;

/**
 * app中的各种常量类
 * Created by sg2 on 2015/12/25.
 */
public class Constants {


    //是否是第一次运行
    public static final String IS_FIRST_RUN="isfirstrun";
    public static final String VERSION_CODE_KEY="versioncodekey";
    public static final String IS_FIRST_RUN_KEY="isfirstrunkey";
    public static final String PASSWORD="password";
    public static final String PHONE_NUMBER="phonenumber";
    public static final String USER_ID="userId";
    //请求码
    public static final int REQUEST_CODE_LOGIN=101;     //登录的请求码
    public static final int REQUEST_CODE_LOC=102;       //定位的请求码
    public static final int REQUEST_CODE_CAMERAL1=201;      //订单里面拍第一张照片的请求码，用来区分是用户点了哪一个拍照按钮，拍照完成后，将照片放到正确位置
    public static final int REQUEST_CODE_CAMERAL2=202;      //订单里面拍第二张照片的请求码，用来区分是用户点了哪一个拍照按钮，拍照完成后，将照片放到正确位置
    public static final int REQUEST_CODE_CAMERAL3=203;      //订单里面拍第三张照片的请求码，用来区分是用户点了哪一个拍照按钮，拍照完成后，将照片放到正确位置
    public static final int REQUEST_CODE_MAP_SELECT=301;    //地图选择的请求码
    public static final int REQUEST_CODE_ADDRESS_SELECT=302;    //用户下单的时候从地址列表选择地址的请求码
    public static final int REQUEST_CODE_CONTACT_SELECT=303;    //用户下单的时候从联系人列表选择联系人的请求码
    public static final int REQUEST_CODE_SELECT_REPAIR_PROJECT=501; //用户下单的时候从项目列表选择项目的请求码

    //服务器IP
    public static final String SERVER_IP_REMOTE="http://120.27.160.57:81";
    public static final String SERVER_IP_LOCAL="http://192.168.2.88:81";

    //用户管理URL
    public static final String URL_GET_VERIFICATIONCODE=SERVER_IP_LOCAL+"/user/getvalidcode";
    public static final String URL_LOGIN=SERVER_IP_LOCAL+"/user/login";
    public static final String URL_LOGOUT=SERVER_IP_LOCAL+"/user/logout";
    public static final String URL_GET_CONTACTS=SERVER_IP_LOCAL+"/usercontact/get";
    public static final String URL_ADD_CONTACTS=SERVER_IP_LOCAL+"/usercontact/add";
    public static final String URL_DELETE_CONTACTS=SERVER_IP_LOCAL+"/usercontact/del";
    public static final String URL_SET_DEFAULT_CONTACTS=SERVER_IP_LOCAL+"/usercontact/setdefault";
    public static final String URL_GET_ADDRESS=SERVER_IP_LOCAL+"/useraddr/get";
    public static final String URL_ADD_ADDRESS=SERVER_IP_LOCAL+"/useraddr/add";
    public static final String URL_DELETE_ADDRESS=SERVER_IP_LOCAL+"/useraddr/del";
    public static final String URL_SET_DEFAULT_ADDRESS=SERVER_IP_LOCAL+"/useraddr/setdefault";
    public static final String URL_GET_DEFAULT_CONTACTS_ADDRESS=SERVER_IP_LOCAL+"/contactandaddr/getdefault";
    //师傅管理URL
    public static final String URL_GET_AROUND_MASTER=SERVER_IP_LOCAL+"/repairer/searchmap";
    public static final String URL_GET_AROUND_MASTER_DETAIL=SERVER_IP_LOCAL+"/repairer/getdetailinfo";
    public static final String URL_GET_AROUND_MASTER_COMMENT=SERVER_IP_LOCAL+"/repairer/getcomment";

    //订单管理URL
    public static final String URL_ADD_REPAIR_ORDER=SERVER_IP_LOCAL+"/repairorder/add";
    public static final String URL_EDIT_REPAIR_ORDER=SERVER_IP_LOCAL+"/repairorder/edit";
    public static final String URL_CANCELBEFOREACCEPT_REPAIR_ORDER=SERVER_IP_LOCAL+"/repairorder/cancel";
    public static final String URL_GET_ORDER=SERVER_IP_LOCAL+"/repairorder/userget";
    public static final String URL_GET_ORDER_DETAIL=SERVER_IP_LOCAL+"/repairorder/usergetdetail";
    public static final String URL_CANCEL_AFTER_ACCEPT=SERVER_IP_LOCAL+"/repairorder/abort";
    public static final String URL_PAY_REPAIR_ORDER=SERVER_IP_LOCAL+"/repairorder/pay";
    public static final String URL_COMMENT=SERVER_IP_LOCAL+"/repairorder/comment";
    //维修类别管理URL
    public static final String URL_GET_REPAIR_TYPE=SERVER_IP_LOCAL+"/repairtype/get";
    public static final String URL_GET_REPAIR_PROJECT=SERVER_IP_LOCAL+"/repairitem/get";
    public static final String URL_GET_COMMENT_TYPE_OR_PROJECT=SERVER_IP_LOCAL+"/recommend/get";
    //基础数据管理URL
    public static final String URL_GET_SERVER_PORT=SERVER_IP_LOCAL+"";
    public static final String URL_GET_CITY=SERVER_IP_LOCAL+"/city/get";
    public static final String URL_GET_COUNTY=SERVER_IP_LOCAL+"/county/get";
    public static final String URL_GET_USER_COMMENT_PHRASE=SERVER_IP_LOCAL+"/usercomment/get";
    public static final String URL_GET_CANCEL_REASON_PHRASE=SERVER_IP_LOCAL+"/orderabortreason/get";
    public static final String URL_GET_HOME_ADV=SERVER_IP_LOCAL+"/advertisement/get";
    public static final String URL_UPLOAD_REPAIRER_FEEDBACK=SERVER_IP_LOCAL+"/feedback/repaireradd";
    public static final String URL_UPLOAD_USER_FEEDBACK=SERVER_IP_LOCAL+"/feedback/useradd";
    public static final String URL_UPLOAD_FILE=SERVER_IP_LOCAL+"/common/uploadfile";
    //图片缓存路径
    public static final String APP_IMAGE_CACHE = "imageCache";

}
